//
//  RS1ViewController.h
//  SmartRoadShow
//
//  Created by Tracy E on 10-10-30.
//  Copyright 2010 simonwang142232@gmail.com. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "MyViewController.h"
#import "TESegmentedControl.h"
#import "MyTableViewCell.h"
#import "OpenWaitView.h"
#import "Context.h"

//艺术地图

@interface RS1ViewController : MyViewController <TESegmentedControlDelegate, UIScrollViewDelegate ,UITableViewDelegate,
UITableViewDataSource, MyTableViewCellDelegate , UIPickerViewDelegate, UIPickerViewDataSource>{
	TESegmentedControl *segmentControl;
	
	//ArtEvent
	UIView *eventView;
	UIScrollView *eventScrollView;
	NSMutableArray *eventArray;
	
	//ArtMark
	UIView *markView;
	UIScrollView *markScrollView;
	NSMutableArray *markArray;
	
	//ArtClass
	UITableView *classTableView;
	NSMutableArray *classInfoArray;
	
	NSInteger currentEventScrollPage;
	NSInteger currentMarkScrollPage;
	NSInteger currentClassPage;
	
	NSInteger eventPostPage;
	NSInteger markPostPage;
	
	UIActivityIndicatorView *classWaitView;
	
	//Pickers
	UIView *eventCityPickerBG;
	UIPickerView *eventCityPickerView;
	
	UIView *eventTimePickerBG;
	UIPickerView *eventTimePickerView;
	BOOL isFirst;
	UILabel *timeLabel;
	
	UIView *markCityPickerBG;
	UIPickerView *markCityPickerView;
	
	UIView *markTypePickerBG;
	UIPickerView *markTypePickerView;
	
	//datas
	NSArray *cityArray;
	NSArray *typeArray;
	NSArray *yearArray;
	NSArray *monthArray;
	NSMutableArray *dayArray;
	
	//status marks
	NSString *selectedEventCity;
	int selectedBeginYear; 
	int selectedBeginMonth;
	int selectedBeginDay;
	int selectedEndYear;
	int selectedEndMonth;
	int selectedEndDay;
	
	NSString *selectedMarkCity;
	NSString *selectedMarkType;
	
	
	BOOL reload;
	
	BOOL allTimeFlag;
	
	BOOL isConnected;
	
	Context *context;
	
	OpenWaitView *waitView;
	OpenWaitView *loading;
}

@property (nonatomic, retain) NSMutableArray *eventArray;
@property (nonatomic, retain) TESegmentedControl *segmentControl;
@property (nonatomic, retain) NSString *selectedEventCity;
@property (nonatomic, retain) NSString *selectedMarkCity;
@property (nonatomic, retain) NSString *selectedMarkType;


//- (void)eventScrollViewScrollToCityIndex:(NSInteger) index;
- (void)viewDidShow;

@end
